<?php

namespace common\models\goods\goods;

use common\models\BaseModel;

/**
 * Desc 库存记录模型
 */
class GoodsStockLogModel extends BaseModel
{

    //状态-入库
    const TYPE_IN = 2;
    //状态-出库
    const TYPE_OUT = 1;

    public static $status = [
        self::TYPE_IN => '入库',
        self::TYPE_OUT => '出库',
    ];

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%goods_stock_log}}';
    }
}
